<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 对象 -->
        <h2 :style="{fontSize:'50px',color:'red'}">{{msg}}</h2>
        <h2 :style="{fontSize:fanlSize + 'PX',color:fanlColor}">{{msg}}</h2>
        <!-- 数组 -->
        <h2 :style="[bgc,bgc1]">{{msg}}</h2>
    </div>
</body>
<script src='../js/vue.js'></script>
<script>
    let app = new Vue({
        el: '#app',
        data: {
             msg:'hello vue.js',
             fanlSize:100,
             fanlColor:'red',
             bgc:{backgroundColor:'red'},
             bgc1:{fontSize:'100px'}
        },
        methods: {}
    })
</script>
</html>